//
//  WMFoodsHeadCell.m
//  witMorning
//
//  Created by Mac mini on 2018/1/3.
//  Copyright © 2018年 zt. All rights reserved.
//

#import "WMFoodsHeadCell.h"

@implementation WMFoodsHeadCell

-(instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        _lab = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, frame.size.width, frame.size.height)];
        _lab.backgroundColor = [UIColor clearColor];
        _lab.textAlignment = NSTextAlignmentCenter;
        [self addSubview:_lab];
        
        self.backgroundColor =PUBLIC_DARK;
        _lab.textColor = [UIColor blackColor];
    }
    return self;
}

-(void)setSelected:(BOOL)selected{
    if (selected) {
        self.backgroundColor = [UIColor whiteColor];
        _lab.textColor = PUBLIC_BLUE;

    }else{
        self.backgroundColor =PUBLIC_DARK;
        _lab.textColor = [UIColor blackColor];
    }
}

@end
